package com.rt.tmpt.others.quartz2.manager;

import com.rt.tmpt.service.IQuartzService;
import org.quartz.SchedulerException;
import org.springframework.context.annotation.Configuration;

import javax.annotation.Resource;


/** 
 * 调用job 
 * @author Administrator 
 * 
 */
@Configuration
public class JobService {  
    @Resource  
    private IQuartzService quartzService;
      
    /** 
     * 初始化定时任务 
     * @throws SchedulerException  
     */  
    public void loadJobInit() throws SchedulerException{
        quartzService.startAllJob();
    }  

}  